package org.ediba.siri.web.requests.view;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

public class TileController extends org.ediba.siri.web.requests.TileController{
	
	public ModelAndView titleHandler(HttpServletRequest request, HttpServletResponse response, Object command){
		return new ModelAndView("title","title","SIRI > Solicitudes > Vista (foto)");
	}

	public ModelAndView stylesHandler(HttpServletRequest request, HttpServletResponse response, Object command){
		List<String> _items = new ArrayList<String>(2);
		_items.add("ext/src/ux/form/Spinner");
		_items.add("ext/src/ux/form/FileUploadField");
		return new ModelAndView("styles", "items", _items);
	}
	
	public ModelAndView scriptsHandler(HttpServletRequest request, HttpServletResponse response, Object command){
		List<String> _items = new ArrayList<String>(6);
		_items.add("ext/src/ux/form/Spinner");
		_items.add("ext/src/ux/form/SpinnerField");
		_items.add("ext/src/ux/form/FileUploadField");
		_items.add("ext/src/ux/grid/UploadGridPanel");
		_items.add("requests/script");
		_items.add("requests/view");
		return super.scriptsHandler(request, response, command).addObject("items", _items);
	}

}
